package com.atmilan.quartz.model.dto.lavita;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Vietti商品源映射
 * @Description: 
 * @author songjc
 * @date 2021-07-02
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class LavitaProductResDTO {

    @JsonProperty(value = "data")
    private DataJson dataJson;
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataJson {

        @JsonProperty(value = "totalRecs")
        private Integer totalRecs;

        @JsonProperty(value = "productList")
        private List<Product> productList;

    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Product {
        @JsonProperty(value = "kuanId")
        private String kuanId;

        @JsonProperty(value = "kuanName")
        private String kuanName;

        @JsonProperty(value = "productName")
        private String productName;

        @JsonProperty(value = "productId")
        private String productId;

        @JsonProperty(value = "price")
        private BigDecimal price;

        @JsonProperty(value = "img")
        private String img;

        @JsonProperty(value = "colorCode")
        private String colorCode;

        @JsonProperty(value = "productYears")
        private String productYears;

        @JsonProperty(value = "IsHide")
        private Integer IsHide;

        @JsonProperty(value = "imgList")
        private String imgList; //存json
        @JsonProperty(value = "kuan")
        private String kuan;
        @JsonProperty(value = "brand")
        private String brand;
        @JsonProperty(value = "UnitPrice")
        private BigDecimal UnitPrice;
        @JsonProperty(value = "seasonCode")
        private String seasonCode;
        @JsonProperty(value = "composition")
        private String composition;
        @JsonProperty(value = "category_id1")
        private String categoryId1;
        @JsonProperty(value = "category_id2")
        private String categoryId2;
        @JsonProperty(value = "category_id3")
        private String categoryId3;
        @JsonProperty(value = "category_name1")
        private String categoryName1;
        @JsonProperty(value = "category_name2")
        private String categoryName2;
        @JsonProperty(value = "category_name3")
        private String categoryName3;
        @JsonProperty(value = "brandPrice")
        private BigDecimal brandPrice;
        @JsonProperty(value = "gender")
        private String gender;
        @JsonProperty(value = "imgDetail")
        private String imgDetail; //存json

        @JsonProperty(value = "sizes")
        private String sizes; //存json
        @JsonProperty(value = "colors")
        private String colors; //存json

        @JsonProperty(value = "createTime")
        private Date createTime;
    }
}
